'''
Created on 2021年5月6日

@author: shuyu5433
'''
import unittest
from utilities.CommonConfig import CommonConfig
from login.loginTest import loginTest
import time
import unittest


class testPersonManage(unittest.TestCase):
    @classmethod
    def setUpClass(cls):
        testPersonManage.driver = loginTest.login('')

    def test_personManage(self):

        time.sleep(30)

        urls = self.driver.find_elements_by_xpath("//a")

        for url in urls:
            print(url.get_attribute("href"))
            if(url.get_attribute("href") == "http://222.76.113.125:38080/personManage/index"):
                url.click()
                break


if __name__ == "__main__":
    #import sys;sys.argv = ['', 'Test.testName']
    unittest.main()
